<!--<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:set var="path" value="${pageContext.request.contextPath}" />-->
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>首营品种管理</title>

<link rel="stylesheet" type="text/css"
	href="/Medical_Instrument/statics/h-ui/css/H-ui.min.css" />
<style type="text/css">
* {
	margin: 0;
	padding: 0;
}

h2 {
	font-weight: 500;
	text-align: center;
	padding: 30px 0 40px;
	border-bottom: 1px solid #92A5C7;
	background: linear-gradient(#F3F8FF, #E2EEFF, #BCD9FF);
}

.buttons {
	display: inline-block;
	font-size: 14px;
	border-radius: 10px 10px 0 0;
	border: 1px solid #9DA0A4;
	padding: 4px;
	text-align: center;
	background: linear-gradient(#DEECFF, #CAE1FF, #B6D6FF);
	color: #1E90FF;
	padding: 0 5px;
	height: 25px;
	line-height: 25px;
}

.but-width {
	width: 100px;
}

.div-width {
	width: 120px;
}

.buttons:hover {
	cursor: pointer;
	background: linear-gradient(#B6D6FF, #CAE1FF, #DEECFF);
}

.nav_span {
	margin-top: -27px;
}

.div_button {
	width: 120px;
	float: right;
	margin: 50px 40px 0 0;
}

.div_button li {
	margin-bottom: 10px;
	height: 27px;
}

.div_table {
	width: 1450px;
	display: inline-block;
	overflow: auto;
	margin: 30px 0 30px 30px;
	border: 5px solid #1E90FF;
	padding: 20px;
	height: 600px;
}
/*	.back-color {
				background-color: red;
			}*/
.required_field {
	color: red;
}

.modal-body table tr td div {
	display: inline;
}
</style>
<script type="text/javascript"
	src="/Medical_Instrument/statics/lib/jquery/1.9.1/jquery.min.js"></script>
</head>

<body>
	<div style="width: 1723px">
		<div class="div-nav">
			<h2>首营品种</h2>
			<nav class="nav_span ">
				<input type="hidden" id="differentiate" value="basicinfo"/>
				<span class="buttons but-width" onclick="show_table($(this),1)"
					style="margin-left: 10px; border-bottom: 1px solid white; background: white;">基本资料</span>
				<span class="buttons but-width" onclick="show_table($(this),2)">业务员签字</span>
				<span class="buttons but-width" onclick="show_table($(this),3)">业务部签字</span>
				<span class="buttons but-width" onclick="show_table($(this),4)">质量管理部签字</span>
				<span class="buttons but-width" onclick="show_table($(this),5)">质量负责人签字</span>
				<span class="buttons but-width" onclick="show_table($(this),6)">待转为商品资料</span>
				<span class="buttons but-width" onclick="show_table($(this),7)">已转为商品资料</span>
			</nav>
		</div>
		<div style="width: 100%;">
			<div class="div_table">
				<table id="firstVarietyInfo"
					class="table table-border table-bordered table-bg">
					<thead>
						<tr class="text-c">
							<th>品种ID</th>
							<th>商品名称</th>
							<th>规格</th>
							<th>单位</th>
							<th>装箱规格</th>
							<th>输入码</th>
							<th>生产企业</th>
							<th>产品注册证号/备案凭证编号</th>
							<th>是否重点养护</th>
							<th>首营类型</th>
							<th>性能成分用途</th>
							<th>批发价</th>
							<th>回撤原因</th>
						</tr>
					</thead>
					<tbody>
					</tbody>
				</table>
			</div>
			<div class="div_button">
				<ul>
					<li class="div-width"><span class="buttons div-width"
						style="border-radius: 10px; " data-toggle="modal"
						data-target="#addBusinessVarieties" id="addVarieties">新增</span></li>
					<li class="div-width"><span class="buttons div-width"
						style="border-radius: 10px; " data-toggle="modal"
						id="updateVarieties" data-target="#addBusinessVarieties"
						onclick="updatevarieties()">修改</span></li>
					<li class="div-width"><span class="buttons div-width"
						style="border-radius: 10px; " onclick="deletevarieties()">删除</span>
					</li>
					<li class="div-width"><span class="buttons div-width"
						style="border-radius: 10px; " data-toggle="modal"
						id="lookvarieties" data-target="#addBusinessVarieties"
						onclick="lookvarieties()">查看</span></li>
					<li class="div-width"><span class="buttons div-width"
						style="border-radius: 10px; " data-toggle="modal"
						data-target="#addBusinessVarieties" id="copyadd"
						onclick="copyaddvarieties()">复制新增</span></li>

					<li class="div-width"><span class="buttons div-width"
						style="border-radius: 10px; display: none;" data-toggle="modal"
						data-target="#addBusinessVarieties" id="salesman"
						class="signvarietes" onclick="signvarieties($(this))">业务员审核</span>
					</li>

					<li class="div-width"><span class="buttons div-width"
						style="border-radius: 10px; display: none;" data-toggle="modal"
						data-target="#addBusinessVarieties" id="busdepar"
						class="signvarietes" onclick="signvarieties($(this))">业务部审核</span>
					</li>

					<li class="div-width"><span class="buttons div-width"
						style="border-radius: 10px; display: none;" data-toggle="modal"
						data-target="#addBusinessVarieties" id="quamandepar"
						class="signvarietes" onclick="signvarieties($(this))">质量管理部审核</span>
					</li>

					<li class="div-width"><span class="buttons div-width"
						style="border-radius: 10px; display: none;" data-toggle="modal"
						data-target="#addBusinessVarieties" id="qualityleader"
						class="signvarietes" onclick="signvarieties($(this))">质量负责人审批</span>
					</li>

					<li class="div-width"><span class="buttons div-width"
						style="border-radius: 10px; display: none;" data-toggle="modal"
						data-target="#withdrawModal" id="retracement" onclick="sign('#operatorName_wd')">回撤</span></li>

					<li class="div-width"><span class="buttons div-width"
						style="border-radius: 10px; display: none;" id="commyInfo"
						class="signvarietes" onclick="signvarieties($(this))"
						data-toggle="modal" data-target="#addBusinessVarieties">转为商品资料</span>
					</li>
				</ul>
			</div>
		</div>
	</div>

	<!--
	            新增首营品种
        -->
	<div class="modal inmodal fade" id="addBusinessVarieties" tabindex="-1"
		role="dialog" aria-hidden="true" style="z-index: 50;">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" style="text-align: center;">首营品种</h4>
					<small class="font-bold" style="position: absolute;top: 0;left: 2;">首营品种审批管理</small>
				</div>
				<div class="modal-body">
					<form style="font-size: 16px;" id="firstVarietyForm">
						<table class="businesstable"
							class="table table-border table-bordered table-hover table-bg"
							style="border-collapse: separate; border-spacing:20px 10px;">
							<tr>
								<td style="float: left;">
									<div>
										<input type="hidden" name="firstNo" id="firstNo" /> <span>审批表编号</span>
										<input type="text" style="width: 327px;" name="approvalFormNo"
											id="approvalFormNo" />
									</div>
								</td>
								<td style="float: left;margin-left: 86px;">
									<div>
										&nbsp;&nbsp;<span>首营类型</span> <select style="width: 220px;"
											name="firstType" id="firstType">
											<option value="0"></option>
											<option value="1">新品种</option>
											<option value="2">新包装</option>
											<option value="3">新规格</option>
										</select>
									</div>
								</td>
							</tr>
							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp;<span class="required_field">商品名称</span>
										<input type="text" style="width: 327px;" name="varietyName"
											id="varietyName" />
									</div>
								</td>
								<td style="float: left;margin-left: 91px;">
									<div>
										&nbsp;&nbsp;&nbsp;<span>输入码</span> <input type="text"
											style="width: 220px;" readonly="readonly" name="inputCode"
											id="inputCode" />
									</div>
								</td>
							</tr>

							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp;<span class="required_field">生产厂家</span>
										<input type="text" style="width: 327px;" name="manufacturer"
											id="manufacturer" />
									</div>
								</td>
								<td style="float: left;margin-left: 79px;">
									<div>
										<span class="required_field">批件有效期</span> <input
											class="input-text Wdate" type="text"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd', defaultDate:'#now'})"
											style="width: 140px;" name="approvalValidity"
											id="approvalValidity" />
									</div>
								</td>
							</tr>
							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
											class="required_field">规格</span> <input type="text"
											name="specification" id="specification" />
									</div>
								</td>
								<td style="float: left;margin-left: 13px;">
									<div>
										&nbsp;&nbsp;&nbsp;<span class="required_field">型号</span> <input
											type="text" name="model" id="model" />
									</div>
								</td>
								<td style="float: left;margin-left: 84px;">
									<div>
										&nbsp;&nbsp;<span>质量标准</span> <select style="width: 220px;"
											name="qualityStandard" id="qualityStandard">
											<option value="0"></option>
											<option value="1">合格</option>
											<option value="2">不合格</option>
										</select>
									</div>
								</td>
							</tr>
							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
											class="required_field">单位</span> <select
											style="width: 100px;" name="unit" id="unit">
											<option value="0"></option>
											<option value="1">支</option>
											<option value="2">台</option>
											<option value="3">套</option>
											<option value="4">盒</option>
											<option value="5">个</option>
											<option value="6">瓶</option>
											<option value="7">贴</option>
											<option value="8">袋</option>
											<option value="9">包</option>
											<option value="10">片</option>
										</select>
									</div>
								</td>
								<td style="float: left;margin-left: 13px;">
									<div>
										&nbsp;&nbsp;&nbsp;<span class="required_field">装箱规格(包装)</span>
										<input type="text" style="width: 118px;" name="cartonSize"
											id="cartonSize" />
									</div>
								</td>
							</tr>

							<tr>
								<td style="float: left;">
									<div>
										<span class="required_field">产品注册证号/备案凭证编号</span> <input
											type="text" style="width: 220px;" name="registraionNo"
											id="registraionNo" />
									</div>
								</td>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;&nbsp; <span>生产许可证号/备案凭证编号</span> <input
											type="text" style="width: 218px;" name="productionPermit"
											id="productionPermit" />
									</div>
								</td>
							</tr>

							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="required_field">器械分类</span>
										<input type="text" style="width: 700px;" name="categoryNo"
											id="categoryNo" />
									</div>
								</td>
								<td style="float: left;">
									<div>
										<input type="button" class="btn btn-primary" value="选择"
											style="height: 25px;text-align: center;" id="choose"/>
									</div>
								</td>
							</tr>

							<tr>
								<td style="float: left;left: 0;">
									<div>
										<span>技术标准编号</span> <input type="text" style="width: 327px;"
											name="technicalStandard" id="technicalStandard" />
									</div>
								</td>
								<td style="float: left;margin-left: 18px;">
									<div>
										&nbsp;&nbsp;<span class="required_field">有效期限(月)</span> <input
											type="text" style="width: 100px;" name="validity"
											id="validity" />
									</div>
								</td>

								<td style="float: left;margin-left: 18px;">
									<div>
										&nbsp;&nbsp;<span>售后期限(月)</span> <input type="text"
											style="width: 100px;" name="afterSaleValidity"
											id="afterSaleValidity" />
									</div>
								</td>
							</tr>

							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp;<span>电源分类</span> <select
											style="width: 150px;" name="powerCategory" id="powerCategory">
											<option value="0"></option>
											<option value="1">有源</option>
											<option value="2">无源</option>
										</select>
									</div>
								</td>
								<td style="float: left;margin-left: 25px;">
									<div>
										&nbsp;&nbsp;&nbsp;<span>是否无菌</span> <select
											style="width: 150px;" name="asepsisCategory"
											id="asepsisCategory">
											<option value="0"></option>
											<option value="1">有菌</option>
											<option value="2">无菌</option>
										</select>
									</div>
								</td>
								<td style="float: left;margin-left: 25px;">
									<div>
										<input type="checkbox" name="oneTime" id="oneTime" /> <span>一次性用品</span>
									</div>
								</td>

								<td style="float: left;margin-left: 60px;">
									<div>
										<span>储存条件</span> <select style="width: 150px;"
											name="storageCondition" id="storageCondition">
											<option value="0"></option>
											<option value="1">常温</option>
											<option value="2">阴凉</option>
											<option value="3">冷藏</option>
										</select>
									</div>
								</td>
							</tr>


							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>条码</span>
										<input type="text" style="width: 327px;" name="barCode"
											id="barCode" />
									</div>
								</td>

								<td style="float: left;margin-left: 90px;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>营销分类</span> <select
											style="width: 250px;" name="marketingCategory"
											id="marketingCategory">
											<option value="0"></option>
											<option value="1">A</option>
											<option value="2">B</option>
											<option value="3">C</option>
										</select>
									</div>
								</td>
							</tr>

							<!--<tr>
									<hr style="position: absolute;top: 350px;width: 870px;color: #000000;" />
								</tr>-->

							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;&nbsp; <span>商品分类</span> <select
											style="width: 327px;" name="goodsCategory" id="goodsCategory">
											<option value="0"></option>
											<option value="1">A</option>
											<option value="2">B</option>
											<option value="3">C</option>
										</select>
									</div>
								</td>

								<td style="float: left;margin-left: 108px;">
									<div>
										&nbsp;&nbsp;&nbsp; <span>功能分类</span> <input type="text"
											style="width: 250px;" name="functionCategory"
											id="functionCategory" />
									</div>
								</td>
							</tr>

							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
											class="required_field">采购价</span> <input type="text"
											style="width: 180px;" name="purchasePrice" id="purchasePrice" />
									</div>
								</td>

								<td style="float: left;margin-left: 60px;">
									<div>
										&nbsp;&nbsp; <span class="required_field">零售价</span> <input
											type="text" style="width: 180px;" name="retailPrice"
											id="retailPrice" />
									</div>
								</td>

								<td style="float: left;margin-left: 43px;">
									<div>
										&nbsp;&nbsp; <span class="required_field">批发价</span> <input
											type="text" style="width: 180px;" name="tradePrice"
											id="tradePrice" />
									</div>
								</td>
							</tr>

							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp;<span>注册商标</span> <input type="text"
											style="width: 327px;" name="registeredBrand"
											id="registeredBrand" />
									</div>
								</td>

								<td style="float: left;margin-left: 70px;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp; <input type="checkbox"
											name="enableSerialNum" id="enableSerialNum" /> <span>启用序列号</span>
									</div>
								</td>

								<td style="float: left;margin-left: 30px;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp; <input type="checkbox"
											name="emphasisConserve" id="emphasisConserve" /> <span>重点养护</span>
									</div>
								</td>

								<td style="float: left;margin-left: 30px;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp; <input type="checkbox"
											name="whetherCold" id="whetherCold" /> <span>冷藏品</span>
									</div>
								</td>
							</tr>


							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;<span class="required_field">质量负责人审批结论</span> <select
											disabled="disabled" style="width: 200px;"
											name="qualityPeopleConclusion" id="qualityPeopleConclusion">
											<option value="0"></option>
											<option value="1">yes</option>
											<option value="2">no</option>
										</select> <span>是否审核</span>&nbsp;&nbsp; Yes or No
									</div>
								</td>

								<td style="float: left;">
									<div>&nbsp;&nbsp;</div>
								</td>

								<td style="float: left;">
									<div>&nbsp;&nbsp;</div>
								</td>
							</tr>

							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;<span class="required_field">业务员申请原因</span> <select
											disabled="disabled" style="width: 200px; ;"
											name="businessPeopleReason" id="businessPeopleReason">
											<option value="0"></option>
											<option value="1">市场需求</option>
											<option value="2">同意</option>
										</select>
									</div>
								</td>
								<td style="float: left;margin-left: 150px;">
									<div>
										<input type="text" name="businessPeopleName"
											id="businessPeopleName" />
									</div>
								</td>
								<td style="float: left;margin-left: 30px;">
									<div>
										&nbsp;&nbsp;<span>签字日期</span> <input class="input-text Wdate"
											type="text" style="width: 140px;"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd', defaultDate:'#now'})"
											name="businessPeopleDate" id="businessPeopleDate" />
									</div>
								</td>

							</tr>

							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
											class="required_field">业务部意见</span> <select
											style="width: 200px;" disabled="disabled"
											name="businessDeptOpinion" id="businessDeptOpinion">
											<option value="0"></option>
											<option value="1">合格</option>
											<option value="2">不合格</option>
										</select>
									</div>
								</td>
								<td style="float: left;margin-left: 150px;">
									<div>
										<input type="text" id="businessDeptName"
											name="businessDeptName" />
									</div>
								</td>
								<td style="float: left;margin-left: 30px;">
									<div>
										&nbsp;&nbsp; <span>签字日期</span> <input class="input-text Wdate"
											type="text" style="width: 140px;"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd', defaultDate:'#now'})"
											name="businessDeptDate" id="businessDeptDate" />
									</div>
								</td>
							</tr>
							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;<span class="required_field">质量管理部意见</span> <select
											style="width: 200px;" disabled="disabled"
											name="qualityDeptOpinion" id="qualityDeptOpinion">
											<option value="0"></option>
											<option value="1">同意</option>
											<option value="2">不同意</option>
										</select>
									</div>
								</td>
								<td style="float: left;margin-left: 150px;">
									<div>
										<input type="text" name="qualityDeptName" id="qualityDeptName" />
									</div>
								</td>
								<td style="float: left;margin-left: 30px;">
									<div>
										&nbsp;&nbsp;<span>签字日期</span> <input class="input-text Wdate"
											type="text" style="width: 140px;"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd', defaultDate:'#now'})"
											name="qualityDeptDate" id="qualityDeptDate" />
									</div>
								</td>
							</tr>
							<tr>
								<td style="float: left;">
									<div>
										&nbsp;&nbsp;<span class="required_field">质量负责人意见</span> <select
											style="width: 200px;" disabled="disabled"
											name="qualityPeopleOpinion" id="qualityPeopleOpinion">
											<option value="0"></option>
											<option value="1">通过</option>
											<option value="2">不通过</option>
										</select>
									</div>
								</td>
								<td style="float: left;margin-left: 150px;">
									<div>
										<input type="text" name="qualityPeopleName"
											id="qualityPeopleName" />
									</div>
								</td>
								<td style="float: left;margin-left: 30px;">
									<div>
										&nbsp;&nbsp;<span>签字日期</span> <input class="input-text Wdate"
											type="text" style="width: 140px;"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd', defaultDate:'#now'})"
											name="qualityPeopleDate" id="qualityPeopleDate" />
									</div>
								</td>
							</tr>
						</table>

					</form>
				</div>

				<div class="modal-footer special">
					<!-- 质量管理员拥有回撤权限 -->
					<button type="button" class="btn btn-primary" id="retreat"
						style="position: absolute;left: 20px;" data-toggle="modal"
						data-target="#withdrawModal" onclick="sign('#operatorName_wd')">回撤</button>

					<button type="button" class="btn btn-white" data-dismiss="modal"
						id="close">关闭</button>
					<!--在此根据变量判断是保存还是各部门签字 -->
					<button type="button" class="btn btn-primary" data-toggle="modal"
						data-target="#business" id="businesssign"
						onclick="sign('#operator')">业务员签字</button>
					<button type="button" class="btn btn-primary" data-toggle="modal"
						data-target="#businessdep" id="businessdepsign"
						onclick="sign('#operatorName')">业务部签字</button>
					<button type="button" class="btn btn-primary" data-toggle="modal"
						data-target="#qcdepsign" id="qcdepsignsign"
						onclick="sign('#operatorName_QD')">质量管理部签字</button>
					<button type="button" class="btn btn-primary" data-toggle="modal"
						data-target="#qcpeosign" id="qcpeosignsign"
						onclick="sign('#operatorName_QP')">质量负责人签字</button>
					<button type="button" class="btn btn-primary" id="changegoods"
						onclick="change_goods('#firstNo')">转为商品资料</button>
					<button type="button" class="btn btn-primary" id="save">保存</button>
					<input type="hidden" value="add" id="isAddOrUpdate" />
				</div>
			</div>
		</div>
	</div>

	<!-- 业务员签字弹出框 -->
	<div id="business" class="modal fade bs-example-modal-lg">
		<div class="modal-dialog " class="loadingModal">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" style="text-align: center;">首营品种</h4>
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
				</div>
				<div class="modal-body">
					<div class="mt-20">
						<form style="font-size: 18px;">
							<div style="margin-top: 30px;margin-bottom: 80px;">
								<span class="required_field">业务员申请原因</span> <select
									style="width: 412px;font-size: 18px;" name="salesmanapply"
									id="salesmanapply">
									<option value=""></option>
									<option value="1">市场需求</option>
									<option value="2">同意</option>
								</select>
							</div>

							<div style="margin-bottom: 30px;">
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>操作员</span> <input
									type="text" style="width: 412px;font-size: 18px;"
									name="operator" id="operator" />
							</div>

							<div>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>密码</span>
								<input type="password" style="width: 412px;font-size: 18px;"
									id="operatorPass" name="operatorPass" />
							</div>
						</form>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary"
						onclick="businesssignsave()">保存</button>
				</div>
			</div>

		</div>

	</div>


	<!-- 业务部审核弹出框 -->
	<div id="businessdep" class="modal fade bs-example-modal-lg">
		<div class="modal-dialog " class="loadingModal">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" style="text-align: center;">首营品种</h4>
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
				</div>
				<div class="modal-body">
					<div class="mt-20">
						<form style="font-size: 18px;">
							<div style="margin-top: 30px;margin-bottom: 80px;">
								<span>业务部意见</span> <select style="width: 412px;font-size: 18px;"
									id="businessDepOpinionSign" name="businessDepOpinionSign">
									<option value="0"></option>
									<option value="1">合格</option>
									<option value="2">不合格</option>
								</select>
							</div>

							<div style="margin-bottom: 30px;">
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>操作员</span> <input
									type="text" style="width: 412px;font-size: 18px;"
									name="operatorName" id="operatorName" />
							</div>

							<div>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>密码</span>
								<input type="password" style="width: 412px;font-size: 18px;"
									name="operatorPassword" id="operatorPassword" />
							</div>

						</form>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary"
						onclick="busdepsignsave()">保存</button>
				</div>
			</div>
		</div>
	</div>

	<!-- 质量管理部签字弹出框 -->
	<div id="qcdepsign" class="modal fade bs-example-modal-lg">
		<div class="modal-dialog " style="margin: 180px auto;width: 40%;">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" style="text-align: center;">首营企业</h4>
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
				</div>
				<div class="modal-body">
					<div class="mt-20">
						<form style="font-size: 18px;">

							<div
								style="margin-top: 30px;margin-bottom: 120px;margin-left: 70px;">
								<span>质量管理部意见</span> <select
									style="width: 418px;font-size: 18px;"
									id="qualityDeptOpinion_QD" name="qualityDeptOpinion_QD">
									<option value="0"></option>
									<option value="1">同意</option>
									<option value="2">不同意</option>
								</select>
							</div>

							<div style="margin-bottom: 30px;text-align: center;">
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>操作员</span> <input
									type="text" style="width: 412px;font-size: 18px;"
									name="operatorName_QD" id="operatorName_QD" />
							</div>

							<div style="text-align: center;">
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>密码</span>
								<input type="password" style="width: 412px;font-size: 18px;"
									id="password_QD" name="password_QD" />
							</div>

						</form>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary"
						onclick="quaymansignsave()">保存</button>
				</div>
			</div>

		</div>

	</div>

	<!-- 质量负责人签字弹出框 -->
	<div id="qcpeosign" class="modal fade bs-example-modal-lg">
		<div class="modal-dialog " style="margin: 180px auto;width: 40%;">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" style="text-align: center;">首营企业</h4>
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
				</div>
				<div class="modal-body">
					<div class="mt-20">
						<form style="font-size: 18px;">

							<div
								style="margin-top: 30px;margin-bottom: 30px;margin-left: 40px;">
								<span class="required_field">质量负责人审批结论</span> <select
									style="width: 418px;font-size: 18px;"
									id="qualityPeopleConclusion_QP"
									name="qualityPeopleConclusion_QP">
									<option value="0"></option>
									<option value="1">同意进货</option>
									<option value="2">不同意进货</option>
								</select>
							</div>

							<div
								style="margin-top: 30px;margin-bottom: 120px;margin-left: 40px;">
								<span class="required_field">质量负责人审批意见</span> <select
									style="width: 418px;font-size: 18px;"
									id="qualityPeopleOpinion_QP" name="qualityPeopleOpinion_QP">
									<option value="0"></option>
									<option value="1">同意</option>
									<option value="2">不同意</option>
								</select>
							</div>


							<div style="margin-bottom: 30px;text-align: center;">
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>操作员</span> <input
									type="text" style="width: 412px;font-size: 18px;"
									name="operatorName_QP" id="operatorName_QP"
							</div>

							<div style="text-align: center;">
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>密码</span>
								<input type="password" style="width: 412px;font-size: 18px;"
									id="password_QP" name="password_QP" />
							</div>

						</form>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary"
						onclick="quaperinchasignsave()">保存</button>
				</div>
			</div>
		</div>
	</div>

	<!-- 回撤原因弹出框 -->
	<div id="withdrawModal" class="modal fade bs-example-modal-lg">
		<div class="modal-dialog " class="loadingModal">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" style="text-align: center;">首营企业</h4>
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
				</div>
				<div class="modal-body">
					<div class="mt-20">
						<form style="font-size: 18px;">
							<div style="margin-top: 30px;margin-bottom: 80px;">
								&nbsp;&nbsp; <span>回撤原因</span> <input type="text"
									style="width: 412px;font-size: 18px;" name="retracementReason"
									id="retracementReason" />
							</div>

							<div>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>操作员</span> <input
									type="text" style="width: 412px;font-size: 18px;"
									name="operatorName_wd" id="operatorName_wd" />
							</div>

							<div style="margin-top: 20px;">
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>密码</span>
								<input type="password" style="width: 412px;font-size: 18px;"
									name="password_wd" id="password_wd" />
							</div>

						</form>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary">保存</button>
				</div>
			</div>
		</div>
	</div>

	<script type="text/javascript"
		src="/Medical_Instrument/statics/lib/layer/2.4/layer.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/h-ui.admin/js/H-ui.admin.js"></script>
	<!--/_footer 作为公共模版分离出去-->

	<script type="text/javascript"
		src="/Medical_Instrument/statics/lib/My97DatePicker/4.8/WdatePicker.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/lib/laypage/1.2/laypage.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/js/gsp/business_varieties/changebutton.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/js/gsp/business_varieties/validationdata.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/js/gsp/business_varieties/moment.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/js/gsp/business_varieties/dml.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/js/gsp/business_varieties/autograph.js"></script>
	<script type="text/javascript">
		getvarietyList("${pageContext.request.contextPath}/firstvariety/getVarietyList");
		$(function() {
			$('.cont_right').scroll(
					function() {
						var obj = $(this);
						var value = obj.scrollLeft();

						$('.firstVarietyInfo_info').css('margin-left',
								(value + 'px'));
						$('#firstVarietyInfo_length').css('margin-left',
								(value + 'px'));

						$('#firstVarietyInfo_paginate').css('margin-right',
								('-' + value + 'px'));
						$('#firstVarietyInfo_filter').css('margin-right',
								('-' + value + 'px'));
					});

			$('#firstVarietyInfo tbody').on('click', 'tr', function() {
				if ($(this).hasClass('selected')) {
					$(this).removeClass('selected');
				} else {
					$('#firstVarietyInfo tr.selected').removeClass('selected');
					$(this).addClass('selected');
				}
			});

			show_table(null, 1);
		});

		/*用户-删除*/
		function member_del(obj, id) {
			layer.confirm('确认要删除吗？', function(index) {
				$(obj).parents("tr").remove();
				layer.msg('已删除!', {
					icon : 1,
					time : 1000
				});
			});
		}

		/* 转换商品 */
		function change_goods(obj) {
			layer
					.confirm(
							'确认要转为商品吗？',
							function(index) {
								var firstNo = $(obj).val();
								$
										.post(
												"${pageContext.request.contextPath}/firstVarietyAudit/varietysign",
												{
													"firstNo" : firstNo,
													"distinguish" : 5,
													"opinion" : "",
													"password" : "",
													"conclusion" : "",
												});
								layer.msg('已转为商品!', {
									icon : 1,
									time : 1000
								});
								$('.modal').map(function() {
									if (!$(this).is(":hidden")) {
										$(this).modal('hide');
									}
								});
								var obj = getSelectedNo("delete");
								$(obj).remove();
							});
		}

		function show_table(obj, num) {

			if (obj != null) {
				obj.siblings().css({
					'border-bottom' : '1px solid #9DA0A4',
					'background' : 'linear-gradient(#DEECFF, #CAE1FF, #B6D6FF)'
				});
				obj.css({
					'border-bottom' : '1px solid white',
					'background' : 'white'
				});
			}

			$('.div_button').find('ul li span').css('display', 'none');
			switch (num) {
			case 1: //获取所有品种数据
				foreach_hide(1, 5);
				getvarietyList("${pageContext.request.contextPath}/firstvariety/getVarietyList");
				$("#differentiate").val("basicinfo");
				break;
			case 2: //获取业务员待审核品种
				foreach_hide(4, 6);
				getvarietyList("${pageContext.request.contextPath}/firstvariety/getSalesmanNotAudit");
				$("#differentiate").val("salesman");
				break;
			case 3: //获取业务部待审核品种
				foreach_hide(4, 5);
				$('.div_button').find('ul li:nth-of-type(' + 7 + ') span').css(
						'display', 'block');
				getvarietyList("${pageContext.request.contextPath}/firstvariety/getDepartmentNotaudit");
				$("#differentiate").val("busdepar");
				break;
			case 4: //获取质量管理部待审核品种
				foreach_hide(4, 5);
				$('.div_button').find('ul li:nth-of-type(' + 8 + ') span').css(
						'display', 'block');
				getvarietyList("${pageContext.request.contextPath}/firstvariety/getQualityControlNotaudit");
				$("#differentiate").val("quamandepar");
				break;
			case 5: //获取质量负责人待审核品种
				foreach_hide(4, 5);
				$('.div_button').find('ul li:nth-of-type(' + 9 + ') span').css(
						'display', 'block');
				getvarietyList("${pageContext.request.contextPath}/firstvariety/getQqualityDirecterNotaudit");
				$("#differentiate").val("qualityleader");
				break;
			case 6: //获取待转为商品资料数据
				foreach_hide(4, 5);
				foreach_hide(10, 11);
				getvarietyList("${pageContext.request.contextPath}/firstvariety/getPendingCommodity");
				$("#differentiate").val("commyInfo");
				break;
			case 7: //获取已转为商品资料数据
				foreach_hide(4, 5);
				getvarietyList("${pageContext.request.contextPath}/firstvariety/getConvertedIntoGoods");
				break;
			}
		}

		function foreach_hide(start, end) {
			for ( var i = start; i <= end; i++) {
				$('.div_button').find('ul li:nth-of-type(' + i + ') span').css(
						'display', 'block');
			}
		}
	</script>
</body>

</html>